<?php
class Index extends Controller
{
	public function Show()
	{
		var_dump($this->login_user);
		$this->display('index/show.html');
	}
	
	public function Upload()
	{
		$this->display('index/upload.html');
	}
	
	public function DoUpload()
	{
		if (isset($_FILES)){
			var_dump($_FILES);
			$file = file_get_contents($_FILES['img']['tmp_name']);
			$filename = $_FILES['img']['tmp_name'];
			$filetype = $_FILES['img']['type'];
			$data = $this->wbClient->upload('test', $file, $filename, $filetype);
			var_dump($data);
		}
	}
}